package biz.obake.team.android;

import java.lang.Thread;

public abstract class g {

    class a implements Thread.UncaughtExceptionHandler {

        /* renamed from: a  reason: collision with root package name */
        private volatile boolean f1544a = false;

        /* renamed from: b  reason: collision with root package name */
        final /* synthetic */ Thread.UncaughtExceptionHandler f1545b;

        a(Thread.UncaughtExceptionHandler uncaughtExceptionHandler) {
            this.f1545b = uncaughtExceptionHandler;
        }

        public void uncaughtException(Thread thread, Throwable th) {
            try {
                if (!this.f1544a) {
                    this.f1544a = true;
                    g.this.a(thread, th);
                }
            } finally {
                this.f1545b.uncaughtException(thread, th);
            }
        }
    }

    public g() {
        Thread.setDefaultUncaughtExceptionHandler(new a(Thread.getDefaultUncaughtExceptionHandler()));
    }

    /* access modifiers changed from: protected */
    public abstract void a(Thread thread, Throwable th);
}
